package com.olmarket.core.exception;

import com.olmarket.core.api.IErrorCode;

/**
 * @author: qwesde@hust.edu.cn
 * @date: 2021/2/13 15:08
 */
public class Asserts {
    public static void fail(String msg) {
        throw new ApiException(msg);
    }

    public static void fail(IErrorCode errorCode) {
        throw new ApiException(errorCode);
    }
}
